export const bodyData = (wechat, payBody, non_str, openid, out_trade_no, total_fee, sign) => {
  let bodyData = `<xml>
                    <appid>${wechat.appid}</appid>
                    <body>${payBody}</body>
                    <mch_id>${wechat.mch_id}</mch_id>
                    <nonce_str>${non_str}</nonce_str>
                    <openid>${openid}</openid>
                    <notify_url>${wechat.notify_url}</notify_url>
                    <out_trade_no>${out_trade_no}</out_trade_no>
                    <spbill_create_ip>${wechat.ip}</spbill_create_ip>
                    <total_fee>${total_fee}</total_fee>
                    <trade_type>JSAPI</trade_type>
                    <sign>${sign.toUpperCase()}</sign>
                  </xml>`
  return bodyData
}